package com.example.comment_oa.pojos.attendance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.example.comment_oa.pojos.SysEmployee;
import lombok.Data;

/**
 * 
 * @TableName attendance
 */
@TableName(value ="attendance")
@Data
public class Attendance implements Serializable {
    /**
     * 考勤id
     */
    @TableId(type = IdType.AUTO)
    private Integer atId;

    /**
     * 员工工号
     */
    private String userAt;

    /**
     * 早上打卡时间
     */
    private Date atStarTime;

    /**
     * 早上打卡结果
     */
    private String atStarRes;

    /**
     * 晚上打卡时间
     */
    private Date atEndTime;

    /**
     * 晚上打卡结果
     */
    private String atEndRes;

    /**
     * 冗余字段部门name
     */
    private String deptName;

    /**
     * 冗余字段员工name
     */
    private String empName;

    /**
     * 日期
     */
    private Date atTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    //上班缺勤次数
    @TableField(exist = false)
    private int starNum;
    //下班缺勤次数
    @TableField(exist = false)
    private int endNum;
    //迟到次数
    @TableField(exist = false)
    private int lateNum;
    //早退次数
    @TableField(exist = false)
    private int earlyNum;
    //打卡类型name
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private SysEmployee sysEmployee;
}